<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="m" uri="http://www.ericsson.com/sn/mobilefaces"%>
<%@page contentType="text/html;charset=UTF8"%> 
<f:view>
    <%--<f:loadBundle basename="messages" var="msgs"/>--%>
    <m:doctype/>
    <m:html>
        <m:body>
            <h:panelGroup>
                <h:form>
                    <h:panelGrid columns="2">
                        <h:commandButton value="上一条" action="#{Reader.onPreviousEntry}"></h:commandButton>
                        <h:commandButton value="下一条" action="#{Reader.onNextEntry}"></h:commandButton>
                    </h:panelGrid>
                    <m:h2><h:outputText value="#{Reader.currentEntry.title}"/></m:h2>
                    <m:h3><h:outputText value="#{Reader.currentEntry.author}"/></m:h3>
                    <h:outputText value="#{Reader.currentEntry.content}"/>
                    <br/>
                    <h:commandButton value="返回目录" action="#{Reader.onReturn}">
                        <f:param name="index" value="#{Reader.currentEntry.index}"/>
                    </h:commandButton>
                </h:form>

            </h:panelGroup>
        </m:body>
    </m:html>
</f:view>
